package com.kiko.education.service.impl;

import com.kiko.education.mapper.CourseMapper;
import com.kiko.education.model.Course;
import com.kiko.education.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;
    @Override
    public String getCourseNameByID(int id){
        return courseMapper.getCourseNameByID(id);
    }
    @Override
    public List getAllCourse(){
        return courseMapper.getAllCourse();
    }
    @Override
    public String getCourseTeacherByID(int id){
        return courseMapper.getCourseTeacherByID(id);
    }
    @Override
    public Course getCourseByID(int id){
        return courseMapper.getCourseByID(id);
    }
}
